package com.lupan.tomcatStudy.javaStudy.chapter16.callable;

import java.util.concurrent.Callable;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/3/16 8:57
 */
public class CallThread implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int i = 0;
        for (; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + "的循环变量i的值：" + i);
        }
        return i;
    }
}

